package com.yuantu.judiciary.model.vo;

import com.yuantu.judiciary.model.dto.EntYearReportBasicDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

/**
 * 企业年报基本信息
 *
 * @author syw
 * @since 2023-07-20
 **/
@Data
@ApiModel("企业年报基本信息")
@Builder
public class EntReportBasicVO {
    @ApiModelProperty("注册号") private String regno;
    @ApiModelProperty("年报日期") private String anchedate;
    @ApiModelProperty("年报 ID") private String ancheid;
    @ApiModelProperty("企业名称") private String entname;
    @ApiModelProperty("年报年份") private String ancheyear;
    @ApiModelProperty("经营状态") private String busst;
    @ApiModelProperty("统一信用代码") private String creditno;
    @ApiModelProperty("电子邮箱") private String email;
    @ApiModelProperty("邮政编码") private String postalcode;
    @ApiModelProperty("地址") private String addr;
    @ApiModelProperty("电话") private String tel;
    @ApiModelProperty("女性从业人数") private String womempnum;
    @ApiModelProperty("企业主营业务活动") private String mainbusiact;
    @ApiModelProperty("企业控股情况") private String holdingsmsg_cn;

    public static EntReportBasicVO getReportBasic(EntYearReportBasicDTO data) {
        return EntReportBasicVO.builder()
                .regno(data.getREGNO())
                .anchedate(data.getANCHEDATE())
                .ancheid(data.getANCHEID())
                .entname(data.getENTNAME())
                .ancheyear(data.getANCHEYEAR())
                .busst(data.getBUSST())
                .creditno(data.getCREDITNO())
                .email(data.getEMAIL())
                .postalcode(data.getPOSTALCODE())
                .addr(data.getADDR())
                .tel(data.getTEL())
                .womempnum(data.getWOMEMPNUM())
                .mainbusiact(data.getMAINBUSIACT())
                .holdingsmsg_cn(data.getHOLDINGSMSG_CN())
                .build();
    }

}
